<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title></title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="__ADMIN__/css/font.css">
<link rel="stylesheet" href="__ADMIN__/css/xadmin.css">
<script type="text/javascript" src="__ADMIN__/js/jquery.min.js"></script>
<script type="text/javascript" src="__ADMIN__/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="__ADMIN__/js/xadmin.js"></script>
<script type="text/javascript" src="__ADMIN__/js/cookie.js"></script>
<style>
.layui-btn+.layui-btn{
    margin-left: 0;
}
.layui-table td{padding:4px 10px;color:#000}
.layui-btn-xs {height: 22px !important;line-height: 22px !important;padding: 0 5px !important;font-size: 12px;}
</style>
</head>
  
<body>

    <div class="x-body x-admin">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
          <legend>{$info.title}</legend>
        </fieldset>
      <!--<xblock>-->
      <!--  <div class="layui-card-body" style="padding-left: 0;float:left;padding-left:20px;padding-top:0;">-->
      <!--    <form class="layui-form layui-col-space5" action="" method="get">-->
      <!--        <div class="layui-inline layui-show-xs-block">-->
      <!--            <input style="width:260px;" type="text" name="keywords" id="search" value="{:input('keywords')}" placeholder="" autocomplete="off" class="layui-input">-->
      <!--        </div>-->
      <!--        <div class="layui-inline layui-show-xs-block">-->
      <!--            <button class="layui-btn" id="search-btn"><i class="layui-icon"></i></button>-->
      <!--        </div>-->
      <!--    </form>-->
      <!--  </div>-->
      <!--</xblock>-->
    {volist name="list" id="v"}
    <div class="layui-table-body layui-table-main" style="width:905px">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
          <legend>{$v.name} 的考核结果</legend>
        </fieldset>
      <table class="layui-table layui-form">
        <thead>
          <tr>
            <th width="65">营销</th>
            <th width="50">页面数</th>
            <th width="65">总分</th>
            <th width="75">未按时完成</th>
            <th width="75">导致黄单</th>
            <th width="75">故意不完成</th>
            <th width="75">建议</th>
            <th width="120" style="text-align: center;">操作</th>
        </thead>
        <tbody>

          {volist name="v.list" id="vv"}
          <tr>
            <td>{$vv.staff_name}</td>
            <td>{$vv.result.page_count}</td>
            <td>{$vv.result.score_total}</td>
            <td>{$vv.result.veto_1}</td>
            <td>{$vv.result.veto_2}</td>
            <td>{$vv.result.veto_3}</td>
            <td>{$vv.result.remark?'有':''}</td>
            <td class="td-manage" style="text-align: center;">
                {if condition="$vv.result.score_total != ''"}
                <a title="查看" class="layui-btn layui-btn-primary layui-btn-xs"  href="javascript:x_admin_show('详情','OperatorView?id={$vv.result.id}','','845','700');">查看</a>
                
                {if condition="session('group_id','','admin') == 1"}
                <a title="删除" class="layui-btn layui-btn-danger layui-btn-xs"  href="javascript:;" lay-filter="del" lay-submit="" lay-id="{$vv.result.id}">删除</a>
                {/if}
                {/if}
            </td>
          </tr>
          {/volist}
          <tr style="background:#FAFAFA;">
            <td><b>最终结果</b></td>
            <td>{$v.page_count}</td>
            <td>{$v.result.score_total}</td>
            <td>{$v.result.veto_1}</td>
            <td>{$v.result.veto_2}</td>
            <td>{$v.result.veto_3}</td>
            <td></td>
            <td class="td-manage" style="text-align: center;"></td>
          </tr>
        </tbody>
      </table>
    </div>
     {/volist}

    </div>

    <script>
      layui.use(['form','layer'], function(){
        form = layui.form,
        layer = layui.layer;

        form.on('submit(cancel)', function(data){
            var id = $(this).attr('lay-id');
            layer.confirm('确定要删除？', {icon: 3, title:'删除提醒'}, function(index){
                $.ajax({
                    type:'POST',
                    dataType:'json',
                    data:{id:id},
                    url:"{:url('Check/OperatorDel')}",
                    success:function(obj){
                      layer.msg(obj.msg, {icon: obj.icon,time: 2000},function(){
                        location.reload();
                      });
                    }
                });
              layer.close(index);
            });
            return false;
        });
      });

    </script>
  </body>

</html>